﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using ZhangBY.Entity;

namespace ZhangBY.Web.Code.UI
{
    /// <summary>
    /// 公司用户控件基类
    /// </summary>
    public class CUCBasePage:System.Web.UI.UserControl
    {
        protected UserInfo userInfo = new UserInfo();
        protected CompanyUserInfo cUserInfo=new CompanyUserInfo();

        /// <summary>
        /// 验证权限
        /// </summary>
        /// <param name="doMain">域</param>
        /// <param name="fileName">文件名</param>
        /// <returns></returns>
        protected bool CheckPermissions(string doMain, string fileName)
        {
            if (null == userInfo.ID || null == cUserInfo.ID) return false;
            return true;
        }
    }
}
